﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;

using libReadWrite;
using libCommonClass;

namespace TTServer.Messages
{
    public class FileExploreRequestMessage : TTMessage
    {
        private String _temporaryKey = "";

        public String TemporaryKey
        {
            get { return _temporaryKey; }
            set { _temporaryKey = value; }
        }

        private String _directory;

        public String Directory
        {
            get { return _directory; }
            set { _directory = value; }
        }

        private String _file;

        public String File
        {
            get { return _file; }
            set { _file = value; }
        }

        public FileExploreRequestMessage()
        {

        }

        public override void ReadMessage(BigEndianReader sr)
        {
            this.TemporaryKey = sr.ReadString();

            this.Directory = sr.ReadString();
            this.File = sr.ReadString();
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return (new FileExploreRequestMessage());
        }

        public override int GetMessageID()
        {
            return MessageKind.FILE_EXPLORE_REQUEST;
        }

        public override string GetMessageName()
        {
            return "FileExplorerRequest";
        }
    }
}
